package com.z2wenfa.innosticproducer.dao;

import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;

public interface SalesCountDao {
    List<HashMap<String, Object>> getCompanyAndServiceAndHospitalMap();

    List<HashMap<String, Object>> getYearWithMonth();

    List<Object> getSalesCountDataList(@Param("companyId") int companyId, @Param("serviceId") int serviceId, @Param("yearId") int yearId, @Param("monthId") int monthId);

    //不传monthId 该年的合计 传monthId 该月的合计
    //传入CompanyId查找该公司下所有的业务单元
    //传入serviceId查找该业务单元下所有医院的数据
    List<Object> getSalesCountDataListByArea(@Param("companyId") int companyId, @Param("serviceId") int serviceId, @Param("yearId") int yearId, @Param("monthId") int monthId);

    //获得医院级别的销售统计
    List<Object> getSalesCountDataListByHospitalLevel(@Param("companyId") int companyId, @Param("serviceId") int serviceId, @Param("yearId") int yearId, @Param("monthId") int monthId);

    //获得业务单元级别的销售统计
    List<Object> getSalesCountDataListByServiceLevel(@Param("companyId") int companyId, @Param("serviceId") int serviceId, @Param("yearId") int yearId, @Param("monthId") int monthId);

    //获得公司级别的销售统计
    List<Object> getSalesCountDataListByCompanyLevel(@Param("companyId") int companyId, @Param("serviceId") int serviceId, @Param("yearId") int yearId, @Param("monthId") int monthId);

}
